@import '../variables/default.scss';
@import '../mixins/index.scss';

.at-area-selector {
  &-tabs {
    .at-tabs__header {
      width: $at-area-tabs-header-width;
      background: $at-area-tabs-header-bg;

      .at-tabs__item {
        font-size: $font-size-slg;
        display: block;
        background: $at-area-tabs-active-bg;

        &.at-tabs__item--active {
          .at-badge {
            background: $at-area-tabs-active-bg;
          }
        }

        &.at-tabs__item--active-before {
          .at-badge {
            border-radius: 0 0 16px 0;
          }
        }

        &.at-tabs__item--active-after {
          .at-badge {
            border-radius: 0 16px 0 0;
          }
        }

        .at-badge {
          background: $at-area-tabs-header-bg;
          width: 100%;
          white-space: normal;
          padding: 20px;
          height: auto;
          line-height: 50px;
          box-sizing: border-box;

          .at-tabs__item-underline {
            right: auto;
            left: 0;
            height: 15px * $hd;
            width: 3px * $hd;
            top: 50%;
            margin-top: -7.5px * $hd;
            border-radius: 10px;
          }
        }
      }
    }

    .at-tabs__body {
      .at-tabs__underline {
        display: none;
      }

      .at-tabs-pane {
        background: #fff;
        padding-left: $spacing-h-lg;

        &.at-tabs-pane--vertical {
          overflow: auto;
        }

        .at-list__item {
          font-size: $font-size-slg;

          &::after {
            border-color: $color-grey-4;
            right: $spacing-h-lg;
          }

          .item-extra {
            width: auto;
            flex: 0 0 auto;
            display: flex;

            .item-extra__info {
              padding-right: 0;

              .at-tag {
                margin-left: $spacing-h-lg;
                vertical-align: middle;
              }
            }
          }
        }
      }
    }
  }
}
